﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Sys_ExamScoreType 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Sys_ExamScoreType : Entity 
	{
		public TB_Sys_ExamScoreType():base("TB_Sys_ExamScoreType") {    _ExamScoreTypeID=Guid.NewGuid().ToString();}

		#region Model
		private string _ExamScoreTypeID;
		private string _ExamYear;
		private string _ExamScoreTypeNO;
		private string _ExamScoreTypeName;
		private string _IsPad;
		private string _PadScoreTpye;
		/// <summary>
		/// 主键
		/// </summary>
		public string ExamScoreTypeID
		{
			get{ return _ExamScoreTypeID; }
			set
			{
				this.OnPropertyValueChange(_.ExamScoreTypeID,_ExamScoreTypeID,value);
				this._ExamScoreTypeID=value;
			}
		}
		/// <summary>
		/// 考试年度
		/// </summary>
		public string ExamYear
		{
			get{ return _ExamYear; }
			set
			{
				this.OnPropertyValueChange(_.ExamYear,_ExamYear,value);
				this._ExamYear=value;
			}
		}
		/// <summary>
		/// 评分方式
		/// </summary>
		public string ExamScoreTypeNO
		{
			get{ return _ExamScoreTypeNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamScoreTypeNO,_ExamScoreTypeNO,value);
				this._ExamScoreTypeNO=value;
			}
		}
		/// <summary>
		/// 评分方式名称
		/// </summary>
		public string ExamScoreTypeName
		{
			get{ return _ExamScoreTypeName; }
			set
			{
				this.OnPropertyValueChange(_.ExamScoreTypeName,_ExamScoreTypeName,value);
				this._ExamScoreTypeName=value;
			}
		}
		/// <summary>
		/// 是否Pad评分
		/// </summary>
		public string IsPad
		{
			get{ return _IsPad; }
			set
			{
				this.OnPropertyValueChange(_.IsPad,_IsPad,value);
				this._IsPad=value;
			}
		}
		/// <summary>
		/// 展示方式（100001：单选     100002：分数）
		/// </summary>
		public string PadScoreTpye
		{
			get{ return _PadScoreTpye; }
			set
			{
				this.OnPropertyValueChange(_.PadScoreTpye,_PadScoreTpye,value);
				this._PadScoreTpye=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExamScoreTypeID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExamScoreTypeID,
				_.ExamYear,
				_.ExamScoreTypeNO,
				_.ExamScoreTypeName,
				_.IsPad,
				_.PadScoreTpye};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExamScoreTypeID,
				this._ExamYear,
				this._ExamScoreTypeNO,
				this._ExamScoreTypeName,
				this._IsPad,
				this._PadScoreTpye};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExamScoreTypeID = DataUtils.ConvertValue<string>(reader["ExamScoreTypeID"]);
			this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
			this._ExamScoreTypeNO = DataUtils.ConvertValue<string>(reader["ExamScoreTypeNO"]);
			this._ExamScoreTypeName = DataUtils.ConvertValue<string>(reader["ExamScoreTypeName"]);
			this._IsPad = DataUtils.ConvertValue<string>(reader["IsPad"]);
			this._PadScoreTpye = DataUtils.ConvertValue<string>(reader["PadScoreTpye"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExamScoreTypeID = DataUtils.ConvertValue<string>(row["ExamScoreTypeID"]);
			this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
			this._ExamScoreTypeNO = DataUtils.ConvertValue<string>(row["ExamScoreTypeNO"]);
			this._ExamScoreTypeName = DataUtils.ConvertValue<string>(row["ExamScoreTypeName"]);
			this._IsPad = DataUtils.ConvertValue<string>(row["IsPad"]);
			this._PadScoreTpye = DataUtils.ConvertValue<string>(row["PadScoreTpye"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Sys_ExamScoreType");
			/// <summary>
			/// 主键
			/// </summary>
			public readonly static Field ExamScoreTypeID = new Field("ExamScoreTypeID","TB_Sys_ExamScoreType","主键");
			/// <summary>
			/// 考试年度
			/// </summary>
			public readonly static Field ExamYear = new Field("ExamYear","TB_Sys_ExamScoreType","考试年度");
			/// <summary>
			/// 评分方式
			/// </summary>
			public readonly static Field ExamScoreTypeNO = new Field("ExamScoreTypeNO","TB_Sys_ExamScoreType","评分方式");
			/// <summary>
			/// 评分方式名称
			/// </summary>
			public readonly static Field ExamScoreTypeName = new Field("ExamScoreTypeName","TB_Sys_ExamScoreType","评分方式名称");
			/// <summary>
			/// 是否Pad评分
			/// </summary>
			public readonly static Field IsPad = new Field("IsPad","TB_Sys_ExamScoreType","是否Pad评分");
			/// <summary>
			/// 展示方式（100001：单选     100002：分数）
			/// </summary>
			public readonly static Field PadScoreTpye = new Field("PadScoreTpye","TB_Sys_ExamScoreType","展示方式（100001：单选     100002：分数）");
		}
		#endregion


	}
}

